package com.dbpms.pj.sys.controller;

import com.dbpms.pj.common.annotation.RequiredLog;
import com.dbpms.pj.common.pojo.JsonResult;
import com.dbpms.pj.common.pojo.PageObject;
import com.dbpms.pj.sys.pojo.SysLog;
import com.dbpms.pj.sys.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log/")
public class SysLogController {
    @Autowired
    SysLogService sysLogService;

    @RequestMapping("doFindPageObjects")
    public JsonResult findPageObjects(String username,@RequestParam Integer pageCurrent){
        return new JsonResult(sysLogService.findPageObjects(username,pageCurrent));
    }

    @RequestMapping("doDeleteObjects")
    public JsonResult doDeleteObjects(Integer... ids){
        return new JsonResult(sysLogService.deleteObjects(ids));
    }


}
